def popSort(raw_list):
    for i in range(len(raw_list)-1,0,-1):#从后往前开始遍历
        for j in range(i-1,-1,-1):
            if raw_list[i]< raw_list[j]:
                temp = raw_list[i]
                raw_list[i] = raw_list[j]
                raw_list[j] = temp
simple_list = [2,3,1,5,2,7,10]
print("原始列表: ",simple_list)
popSort(simple_list)
print("排序后列表: ",simple_list)
